package com.ysqcould.mp.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公众号文章管理对象 t_mp_article
 * 
 * @author jcd
 * @date 2022-10-18
 */
public class MpArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 唯一ID */
    @Excel(name = "唯一ID")
    private String aid;

    /** 群发ID */
    @Excel(name = "群发ID")
    private String appmsgid;

    /** 文章发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "文章发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime articleCreateTime;

    /** 文章更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "文章更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime articleUpdateTime;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 封面原始链接 */
    @Excel(name = "封面原始链接")
    private String coverUrl;

    /** 摘要信息 */
    @Excel(name = "摘要信息")
    private String digest;

    /** 原始链接 */
    @Excel(name = "原始链接")
    private String link;

    /** 是否付费文章 */
    @Excel(name = "是否付费文章")
    private Long paySubscribe;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private Long mpArticleCategoryId;

    /** 所属公众号 */
    @Excel(name = "所属公众号")
    private String mpInfoId;

    /**文章解析状态*/
    private Long parsingStatus;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAid(String aid) 
    {
        this.aid = aid;
    }

    public String getAid() 
    {
        return aid;
    }
    public Long getParsingStatus() {
        return parsingStatus;
    }

    public void setParsingStatus(Long parsingStatus) {
        this.parsingStatus = parsingStatus;
    }
    public void setAppmsgid(String appmsgid) 
    {
        this.appmsgid = appmsgid;
    }

    public String getAppmsgid() 
    {
        return appmsgid;
    }
    public void setArticleCreateTime(LocalDateTime articleCreateTime)
    {
        this.articleCreateTime = articleCreateTime;
    }

    public LocalDateTime getArticleCreateTime()
    {
        return articleCreateTime;
    }
    public void setArticleUpdateTime(LocalDateTime articleUpdateTime)
    {
        this.articleUpdateTime = articleUpdateTime;
    }

    public LocalDateTime getArticleUpdateTime()
    {
        return articleUpdateTime;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setCoverUrl(String coverUrl) 
    {
        this.coverUrl = coverUrl;
    }

    public String getCoverUrl() 
    {
        return coverUrl;
    }
    public void setDigest(String digest) 
    {
        this.digest = digest;
    }

    public String getDigest() 
    {
        return digest;
    }
    public void setLink(String link) 
    {
        this.link = link;
    }

    public String getLink() 
    {
        return link;
    }
    public void setPaySubscribe(Long paySubscribe) 
    {
        this.paySubscribe = paySubscribe;
    }

    public Long getPaySubscribe() 
    {
        return paySubscribe;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setMpArticleCategoryId(Long mpArticleCategoryId) 
    {
        this.mpArticleCategoryId = mpArticleCategoryId;
    }

    public Long getMpArticleCategoryId() 
    {
        return mpArticleCategoryId;
    }
    public void setMpInfoId(String mpInfoId)
    {
        this.mpInfoId = mpInfoId;
    }

    public String getMpInfoId()
    {
        return mpInfoId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("aid", getAid())
            .append("appmsgid", getAppmsgid())
            .append("articleCreateTime", getArticleCreateTime())
            .append("articleUpdateTime", getArticleUpdateTime())
            .append("cover", getCover())
            .append("coverUrl", getCoverUrl())
            .append("digest", getDigest())
            .append("link", getLink())
            .append("paySubscribe", getPaySubscribe())
            .append("title", getTitle())
            .append("mpArticleCategoryId", getMpArticleCategoryId())
            .append("mpInfoId", getMpInfoId())
            .toString();
    }
}
